;;==========================================================================
;; Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
;;==========================================================================
    AREA	|.text|, CODE , READONLY

    EXPORT  SWPADD

SWPADD
    stmdb	sp!, {r4, r5, lr}
    ldr	r3, [r0]
    mov	r5, #1
    swi	0x00000000
    ldmia	sp!, {r4, r5, pc}


    EXPORT  CMPSWP

CMPSWP
    stmdb	sp!, {r4, r5, lr}
    ldr	r3, [r0]
    mov	r5, #2
    swi	0x00000000
    ldmia	sp!, {r4, r5, pc}

    END
